CC = gcc
CFLAGS = -Wall
PREFIX = /usr/local

hello: hello.c
	$(CC) $(CFLAGS) -o hello hello.c

install:
	install -d $(DESTDIR)$(PREFIX)/bin
	install -m 755 hello $(DESTDIR)$(PREFIX)/bin/

clean:
	rm -f hello

.PHONY: clean install
